from typing import Optionalfrom pydantic_settings import BaseSettings, SettingsConfigDictfrom dotenv import load_dotenv# 加载.env文件load_dotenv()class Settings(BaseSettings):    """应用配置"""    # 数据库配置    DB_HOST: str = "localhost"    DB_PORT: int = 3306    DB_USER: str = "root"    DB_PASS: str = "Aqilmini886"    DB_NAME: str = "wallet"    # 数据库连接池配置    DB_POOL_SIZE: int = 5    DB_MAX_OVERFLOW: int = 10    DB_POOL_TIMEOUT: int = 30    DB_POOL_RECYCLE: int = 1800    class Config:        env_file = ".env"        case_sensitive = True    db_uri: Optional[str] = None    # JWT配置    SECRET_KEY: str = "your-secret-key-here"  # 用于JWT加密的密钥    ALGORITHM: str = "HS256"    ACCESS_TOKEN_EXPIRE_MINUTES: int = 60 * 24  # 24小时    # 微信配置    WECHAT_APP_ID: str = "wxcf2826d4f7597fd0"    WECHAT_APP_SECRET: str = "d32bdf1dfc0fe006ce230a2fbff6d449"settings = Settings()